import QtQuick 2.0

Rectangle{
    id: root
    width: 200; height: 140
    color: "grey"
    Grid{
        anchors.centerIn: parent
        rows: 2; columns: 3
        spacing: 10
        Cell{ cellColor: "red"; onClicked:  root.color = cellColor}
        Cell{ cellColor: "black"; onClicked:  root.color = cellColor}
        Cell{ cellColor: "green"; onClicked:  root.color = cellColor}
        Cell{ cellColor: "#123456"; onClicked:  root.color = cellColor}
        Cell{ cellColor: "#654321"; onClicked:  root.color = cellColor}
        Cell{ cellColor: "#666666"; onClicked:  root.color = cellColor}
    }
}

